package com.sany.assess.entity.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author fenglf
 * @since 2020-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("EVA_POSITION")
@ApiModel(value = "Position对象", description = "")
public class Position extends Model<Position> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键岗位ID")
    @TableId(value = "ID", type = IdType.ID_WORKER)
    private String id;

    @ApiModelProperty(value = "岗位名称")
    @TableField("POSITION_TEXT")
    private String positionText;

    @ApiModelProperty(value = "岗位编码")
    @TableField("POSITION_CODE")
    private String positionCode;

    @ApiModelProperty(value = "岗位英文名称")
    @TableField("POSITION_TEXT_EN")
    private String positionTextEn;

    @ApiModelProperty(value = "隶属组织ID")
    @TableField("ORG_ID")
    private String orgId;

    @ApiModelProperty(value = "岗位排序")
    @TableField("POSITION_RANK")
    private String positionRank;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
